package it.unibo.deis.lia.mmhc.spm;

import it.unibo.deis.lia.mmhc.nip.NetworkInterfaceProvider;

import java.io.Serializable;

public class Service implements Serializable {

	private String name;
	private int port;
	private String fornitore;

	public Service(String name, int port) {
		super();
		this.name = name;
		this.port = port;
		fornitore = NetworkInterfaceProvider.getMyUniversalName();
	}

	public Service(String name, int port, String fornitore) {
		super();
		this.name = name;
		this.port = port;
		this.fornitore = fornitore;
	}

	public String getFornitore() {
		return fornitore;
	}

	public void setFornitore(String fornitore) {
		this.fornitore = fornitore;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

}
